RtWritePortBufferUchar
RtWritePortBufferUshort
RtWritePortBufferUlong
The RtWritePortBuffer* calls copy data from a buffer to an I/O port until the buffer has been emptied using a number of bytes that you specify for each write operation.
Syntax
VOID RtWritePortBufferUchar( PUCHAR PortAddress, PUCHAR pBuffer, ULONG nNumberOfBytes );
VOID RtWritePortBufferUshort( PUSHORT PortAddress, PUSHORT pBuffer, ULONG nNumberOfBytes );
VOID RtWritePortBufferUlong( PULONG PortAddress, PULONG pBuffer, ULONG nNumberOfBytes );
Parameters
PortAddress
A Port I/O address cast as a pointer to the type of data being written.
pBuffer
A pointer to a buffer of one-, two-, or four-byte quanta.
nNumberOfBytes
The number of bytes to be read at one time. Acceptable values are 1, 2, and 4.
Remarks
RtWritePortBufferUchar, RtWritePortBufferUshort, and RtWritePortBufferUlong write a buffer to an I/O port 1, 2, or 4 bytes at a time until the buffer has been emptied.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Rtapi.h |
Library | RtApi.lib (Windows), Rtx_Rtss.lib (RTSS) |
See Also:
RtReadPortBuffer* (Uchar, Ushort, Ulong)